<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="grid-wrap">
    <table data-id="grid"></table>
</div>
<div data-id="news_tb" class="nsdb">
    <sinux:button permission="pbom:data:add" dataKey="add" dataIcon="fa fa-plus fa-lg"/>
    <shiro:hasPermission name="pbom:data:import">
        <a data-href="#" data-key="upload" iconCls="fa fa-upload fa-lg" plain="true">数据上传</a>
    </shiro:hasPermission>
    <a data-href="${pageContext.request.contextPath}/app/api/pbom/toSearch" data-key="search"
       iconCls="fa fa-search fa-lg"
       plain="true">搜索</a>
    <a data-href="#" data-key="search_all" iconCls="fa fa-refresh fa-lg" plain="true">搜索全部</a>
</div>

<div data-id="user_list_btn">
    <sinux:button permission="pbom:data:update" dataParam="?id={{id}}" dataKey="edit" dataIcon="fa fa-edit fa-lg"
                  dataId="{{id}}"/>
    <sinux:button permission="pbom:data:delete" dataKey="del" dataIcon="fa fa-trash fa-lg" dataId="{{id}}"/>
    <shiro:hasPermission name="pbom:data:update">
        <a data-href="${pageContext.request.contextPath}/app/api/pbom/publish" data-id="{{id}}" data-key="publish"
           iconCls="fa fa-share-square fa-lg" plain="true">发布结构</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="ebom:data:view">
        <a data-href="${pageContext.request.contextPath}/app/api/ebom/toPBomDetail" data-id="{{id}}"
           data-key="pBomDetail"
           iconCls="fa fa-sitemap fa-lg" plain="true">查看匹配的装配结构</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="ebom:data:export">
        <a data-href="${pageContext.request.contextPath}/app/api/pbom/export" data-id="{{id}}" data-key="export"
           iconCls="fa fa-download fa-lg" plain="true">结构导出</a>
    </shiro:hasPermission>
    <a data-href="#" data-id="{{id}}" data-key="view" iconCls="fa fa-eye fa-lg" plain="true">详情查看</a>
</div>
